package com.piece.blog.service;

import com.piece.blog.model.CourseHour;
import com.piece.blog.repository.CourseHourRepository;
import com.piece.core.jpa.repository.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.PostConstruct;

@Service
@Transactional
public class CourseHourService extends BaseService<CourseHour, String> {

    @Autowired
    private CourseHourRepository courseHourRepository;

    @PostConstruct
    public void initRepository() {
        setRepository(courseHourRepository);
    }

}
